<?php

namespace App\Http\Controllers\Web;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\News;
use App\Model\Goods;
use App\Model\Schedule;
class OrderController extends Controller
{
    //
    public function index(){
//        $request = new Request();
//        $news = [
//            0 => News::getNews(0),
//
//        ];

        return view('order',[
            'currentNav' => 'order',
            'news' => News::where('type',1) ->orderBy('id')-> get(),
            'schedule' => Schedule::all(),
            'goods' => Goods::all()
        ]);
    }
}
